  /**
   * Generate time : 2017-05-09 10:41:16
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.cx.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCXPerson 
 * table comment : 人员通讯录 
 */
public class ZMCXPerson extends DaoEPBase {

	private String fdKeyId = " ";		
	private String fdName = " ";		/* 姓名*/
	private String fdMobile = " ";		/* 手机号*/
	private String fdGroup = " ";		/* 群组*/
	private String fdMiningId = " ";		/* 矿ID*/
	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(35);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdName");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("姓名");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMobile");
	eiColumn.setFieldLength(11);	
	eiColumn.setDescName("手机号");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdGroup");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("群组");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMiningId");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("矿Id");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCXPerson() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId 
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	/**
	 * get the fdName - 姓名
	 * @return the fdName
	 */
	public String getFdName() {
		return this.fdName;
	}
	
	/**
	 * set the fdName - 姓名
	 */
	public void setFdName(String fdName) {
		this.fdName = fdName;
	}
	/**
	 * get the fdMobile - 手机号
	 * @return the fdMobile
	 */
	public String getFdMobile() {
		return this.fdMobile;
	}
	
	/**
	 * set the fdMobile - 手机号
	 */
	public void setFdMobile(String fdMobile) {
		this.fdMobile = fdMobile;
	}
	/**
	 * get the fdGroup - 群组
	 * @return the fdGroup
	 */
	public String getFdGroup() {
		return this.fdGroup;
	}
	
	
	/**
	 * set the fdGroup - 群组
	 */
	public void setFdGroup(String fdGroup) {
		this.fdGroup = fdGroup;
	}
	
	
	/**
	 * get the fdMiningId - 矿Id
	 * @return the fdMiningId
	 */
	public String getfdMiningId() {
		return this.fdMiningId;
	}
	
	
	/**
	 * set the fdMiningId - 矿Id
	 */
	public void setfdMiningId(String fdMiningId) {
		this.fdMiningId = fdMiningId;
	}
	
	
	
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdName")), fdName));
		setFdMobile(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMobile")), fdMobile));
		setFdGroup(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdGroup")), fdGroup));
		setfdMiningId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMiningId")), fdMiningId));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdName",StringUtils.toString(fdName, eiMetadata.getMeta("fdName")));	
			map.put("fdMobile",StringUtils.toString(fdMobile, eiMetadata.getMeta("fdMobile")));	
			map.put("fdGroup",StringUtils.toString(fdGroup, eiMetadata.getMeta("fdGroup")));
			map.put("fdMiningId",StringUtils.toString(fdMiningId, eiMetadata.getMeta("fdMiningId")));	
			
		return map;
	
	}
}